#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do3进程名.py
# author: 马国鑫
# datetime:2022/3/26 17:51
# software: PyCharm

"""
this is function  description 
"""

# import module your need
import multiprocessing

def dance():
    # 获取进程名字
    print(multiprocessing.current_process())
    for i in range(5):
        print('跳舞')

if __name__ == "__main__":
    # target指定要执行的函数
    # name指定进程名字
    my_dance = multiprocessing.Process(target=dance, name="mgx")
    my_dance.start()

